package com.stellar.auth.convert;

import com.stellar.auth.basic.entity.AuthRole;
import com.stellar.auth.controller.admin.authRole.vo.AuthRoleRequestPageVO;
import com.stellar.auth.controller.admin.authRole.vo.AuthRoleRequestVO;
import com.stellar.auth.controller.admin.authRole.vo.AuthRoleResponseVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 角色表转换器
 * @author Jqchan
 * @version 1.0
 * @date 2025-05-16 18:07:03
 */
@Mapper
public interface AuthRoleConvert {

    AuthRoleConvert INSTANCE = Mappers.getMapper(AuthRoleConvert.class);

    AuthRole convert(AuthRoleResponseVO responseVO);

    AuthRole convert(AuthRoleRequestVO requestVO);

    AuthRole convert(AuthRoleRequestPageVO requestPageVO);

    AuthRoleResponseVO convert(AuthRole entity);

    List<AuthRoleResponseVO> convertEntityToRespList(List<AuthRole> entities);
}
